package agendaDOM_JAXB;

/**
 * Interface with the methods of Agenda.
 * @author <A HREF="fernandezlopez.raul@gmail.com">Ra�l Fern�ndez L�pez</A> 
 * @version 1.00
 */

import java.io.IOException;
import java.util.List;

import javax.swing.DefaultListModel;

public interface Agenda {
	public DefaultListModel<String> listContacts();
	public void loadXML();
	public String saveXML();
	public void createNewContact() throws IOException;
	public String printContactDetail(int index) throws IOException;
	public boolean editContact(int index) throws IOException;
	public void deleteContact(int index) throws IOException;
	public List<String> searchByName(String name);
	public List<String> searchByJob(String job);
	public List<String> searchByPostalCode(String postalCode);
	
	public int getNumContactos();
	public List<String> xpathSearch(String predicate);
	public void searchContactLostfocus(int idContacto);
}
